Klasse ReportPresenter
java.lang.Object
com.inet.pdfc.presenter.BasePresenter
com.inet.pdfc.presenter.ReportPresenter
- Alle implementierten Schnittstellen:
NamedExtension
- Bekannte direkte Unterklassen:
ReportPDFPresenter
Generates a statistical report of the comparison which contains diagrams of the difference types and their
distribution along the pages.
An active 'reporting' plugin is required to use this filter!
An active 'reporting' plugin is required to use this filter!
- Seit:
- i-net PDFC 5.0
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen BasePresenter
BasePresenter.ERROR_SOURCE -
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final StringExport as 'Open Document Spreadsheet'static final StringExport as 'Portable Document Format'static final StringExport as 'Rich Text Format'static final StringExport as 'Excel Spreadsheet'static final StringExport as 'Excel Spreadsheet', for version 2007 and laterVon Klasse geerbte Felder BasePresenter
LOGGER, MAX_FILENAME_LENGTH -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungReportPresenter(boolean showDiagrams, boolean showDifferences, boolean appendSettings, String exportFormat, File target, boolean isFolder) Creates the exporter.ReportPresenter(boolean showDiagrams, boolean showDifferences, boolean appendSettings, String exportFormat, OutputStream target) Creates the exporter.ReportPresenter(boolean detailed, boolean appendSettings, String exportFormat, File target, boolean isFolder) Creates the exporter.ReportPresenter(boolean detailed, boolean appendSettings, String exportFormat, OutputStream target) Creates the exporter. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidDetaches this presenter from a model.voidexecuteImmediately(ResultModel model) Forces an execution of the presenter no matter the current model state.
Use this method to run a presenter for an already finished model.protected OutputStreamOpens an returns an output stream for the result of the currentgetModel().Returns the UNIQUE name of the extension.protected ResultModelgetModel()Returns the model this presenter is registered tovoidonClear()Called upon comparison startup.voidCreates and saves a report for the registered comparison model.voidCalled whenever the referred model receives a data chunk.voidonError(ExceptionData error, boolean interrupted, BasePresenter.ERROR_SOURCE source) Called in case of an error that occurred either in one of the parser threads or in the compare thread.
NOTE: This method is only called for exceptions which are notified to theResultModel.voidCalled whenever the filter conditions of the referenced model have changed.voidonFinish()OPTIONAL: Called in case of batch comparison at the end of all comparisons of the batch run.voidonInit()Called at the time the document informations have been set.voidonProgressUpdate(float progress) Called whenever the comparison sends a progress state.voidsetExportFormat(String exportFormat) Sets the export format of the report.voidsetModel(ResultModel newModel) Registers this presenter to a model.voidsetPassword(String password) Set for the export format pdf the passwordspawn(boolean spawnWithParent) Creates another presenter of the the same type as the current one.Von Klasse geerbte Methoden BasePresenter
canInformUserOnErrors, createExportFilename, getDefaultExportName, getLastPresenterException, getParent, getPresenterExceptions, setParent
-
Felddetails
-
FORMAT_ODS
-
FORMAT_PDF
-
FORMAT_RTF
-
FORMAT_XLS
-
FORMAT_XLSX
Export as 'Excel Spreadsheet', for version 2007 and later- Siehe auch:
-
-
Konstruktordetails
-
ReportPresenter
public ReportPresenter(boolean detailed, boolean appendSettings, String exportFormat, File target, boolean isFolder) Creates the exporter.- Parameter:
detailed- set to true when additional the list of errors must be renderedappendSettings- true when settings must be appendedexportFormat- defines the format of the exported report. Valid values are 'pdf', 'xls', 'xlsx', 'ods' and 'rtf'.target- the folder or file to write the results to, will be ignored ifgetExportStream()is overwrittenisFolder- if the target is a folder or a file- Löst aus:
IllegalStateException- in case the presenter is used without the reporting plugin- Seit:
- i-net PDFC 5.0
- Siehe auch:
-
ReportPresenter
public ReportPresenter(boolean showDiagrams, boolean showDifferences, boolean appendSettings, String exportFormat, File target, boolean isFolder) Creates the exporter.- Parameter:
showDiagrams- sets whether the overview diagrams per comparisons are supposed to be drawnshowDifferences- set to true when additional the list of errors must be renderedappendSettings- true when settings must be appendedexportFormat- defines the format of the exported report. Valid values are 'pdf', 'xls', 'xlsx', 'ods' and 'rtf'.target- the folder or file to write the results to, will be ignored ifgetExportStream()is overwrittenisFolder- if the target is a folder or a file- Löst aus:
IllegalStateException- in case the presenter is used without the reporting plugin- Seit:
- i-net PDFC 5.0
- Siehe auch:
-
ReportPresenter
public ReportPresenter(boolean detailed, boolean appendSettings, String exportFormat, OutputStream target) Creates the exporter.- Parameter:
detailed- set to true when additional the list of errors must be renderedappendSettings- true when settings must be appendedexportFormat- defines the format of the exported report. Valid values are 'pdf', 'xls', 'xlsx', 'ods' and 'rtf'.target- the outputstream for the result- Löst aus:
IllegalStateException- in case the presenter is used without the reporting plugin- Seit:
- i-net PDFC 5.0
- Siehe auch:
-
ReportPresenter
public ReportPresenter(boolean showDiagrams, boolean showDifferences, boolean appendSettings, String exportFormat, OutputStream target) Creates the exporter.- Parameter:
showDiagrams- sets whether the overview diagrams per comparisons are supposed to be drawnshowDifferences- set to true when additional the list of errors must be renderedappendSettings- true when settings must be appendedexportFormat- defines the format of the exported report. Valid values are 'pdf', 'xls', 'xlsx', 'ods' and 'rtf'.target- the outputstream for the result- Löst aus:
IllegalStateException- in case the presenter is used without the reporting plugin- Seit:
- i-net PDFC 25.10
- Siehe auch:
-
-
Methodendetails
-
getExtensionName
Returns the UNIQUE name of the extension. With UNIQUE referring to 'unique among all implementations of the same interface'- Gibt zurück:
- the UNIQUE name of the extension
-
onComparisonDone
Creates and saves a report for the registered comparison model.- Angegeben von:
onComparisonDonein KlasseBasePresenter- Löst aus:
Exception- on report failures or IO failuresIllegalStateException- if not model is set- Seit:
- i-net PDFC 3.0
-
executeImmediately
Forces an execution of the presenter no matter the current model state.
Use this method to run a presenter for an already finished model.- Setzt außer Kraft:
executeImmediatelyin KlasseBasePresenter- Parameter:
model- the model to be presented, ifnullthe currently set model will be presented. This model will not be set persistently to the presenter, it will be detached at the end of this method- Löst aus:
Exception- thrown in case the processing of fails; this exception is published to the caller to allow a feedback to the user
-
getModel
Returns the model this presenter is registered to- Setzt außer Kraft:
getModelin KlasseBasePresenter- Gibt zurück:
- the model, is null until a comparison was started where this Presenter was added to.
-
detachFromModel
public void detachFromModel()Detaches this presenter from a model. Call this method if the presenter should no longer generate output for the referenced model.- Setzt außer Kraft:
detachFromModelin KlasseBasePresenter
-
onClear
Called upon comparison startup. This does not imply which data is available to the model, but most likely the model has been cleared at this point.- Setzt außer Kraft:
onClearin KlasseBasePresenter- Löst aus:
Exception- thrown in case the processing of the clear step fails
-
onDataUpdate
Called whenever the referred model receives a data chunk. This does not imply that any differences are available yet as it is called as well for no-difference areas.- Setzt außer Kraft:
onDataUpdatein KlasseBasePresenter- Löst aus:
Exception- thrown in case the processing of the update step fails
-
onError
Called in case of an error that occurred either in one of the parser threads or in the compare thread.
NOTE: This method is only called for exceptions which are notified to theResultModel.- Setzt außer Kraft:
onErrorin KlasseBasePresenter- Parameter:
error- the exceptioninterrupted- indicates whether the comparison was interrupted due to this exception. Iftruethere will be no further calls (e.g. onComparisonDone)source- the source module of the exception.
-
onFilterChange
Called whenever the filter conditions of the referenced model have changed. This method is not called automatically during a comparison but rather a reaction to a configuration change that can be applied to the model.- Setzt außer Kraft:
onFilterChangein KlasseBasePresenter- Löst aus:
Exception- thrown in case the processing of the filter update fails
-
onFinish
public void onFinish()OPTIONAL: Called in case of batch comparison at the end of all comparisons of the batch run. This method cannot be triggered by an event of any referenced result model. It's sole purpose is to serve as a callback for thePDFComparer.batchCompare(java.io.File, java.io.File)method.
NOTE: This method only called once per batch compare and only for the root presenter, never for spawned ones.- Setzt außer Kraft:
onFinishin KlasseBasePresenter
-
onInit
Called at the time the document informations have been set.- Setzt außer Kraft:
onInitin KlasseBasePresenter- Löst aus:
Exception- thrown in case the processing of the init step fails
-
onProgressUpdate
public void onProgressUpdate(float progress) Called whenever the comparison sends a progress state. In some rare cases the same progress value may be sent multiple times.- Setzt außer Kraft:
onProgressUpdatein KlasseBasePresenter- Parameter:
progress- the progress in percent, a value between 0 and 100, bounds included.
-
setModel
Registers this presenter to a model. If it already was registered to a model, the old model will be detached first.- Setzt außer Kraft:
setModelin KlasseBasePresenter- Parameter:
newModel- the new
-
spawn
Creates another presenter of the the same type as the current one. The spawned presenter may either have the same settings as the current one or it may be a child of the current one.- Setzt außer Kraft:
spawnin KlasseBasePresenter- Parameter:
spawnWithParent- if true, the presenter is allowed to keep a reference to it's parent to create a summary on onFinish()- Gibt zurück:
- a new presenter for the same batch comparison run as the current one
-
getExportStream
Opens an returns an output stream for the result of the currentgetModel(). The caller of this method will close the stream itself!- Gibt zurück:
- the stream to write the current result to
- Löst aus:
IOException- thrown in case the stream could not be created- Seit:
- i-net PDFC 3.0
-
setExportFormat
Sets the export format of the report. Valid values are 'pdf', 'xls', 'xlsx', 'ods' and 'rtf'- Parameter:
exportFormat- the export format to be set- Seit:
- i-net PDFC 4.3
-
setPassword
Set for the export format pdf the password- Parameter:
password- the password (currently only for pdf)- Seit:
- i-net PDFC 21.4
-